|
![](/i/fill.gif) |
On Thu, 3 Jan 2002 17:37:06 +0100, Johannes Bretscher <bre### [at] 5sl org> wrote:
> So CSG can be used with a mesh. That was the hint I needet. I thought
> only solid objects are.
Only solid objects.
Documentation for 3.5 says:
"There are six totally thin, finite objects which have no well-defined inside.
They are bicubic patch, disc, smooth triangle, triangle, polygon and mesh /
mesh2. They may be combined in CSG union but cannot be used in other types of
CSG (or inside a clipped_by statement)."
However if there are reasonably small number of triangles then you can simulate
trangles with clipped planes. That's why I said "it depends what your hole is
and what your object is".
ABX
--
#declare _=function(a,b,x){((a^2)+(b^2))^.5-x}#default {pigment{color rgb 1}}
union{plane{y,-3}plane{-x,-3}finish{reflection 1 ambient 0}}isosurface{ //ABX
function{_(x-2,y,1)&_((x+y)*.7,z,.1)&_((x+y+2)*.7,z,.1)&_(x/2+y*.8+1.5,z,.1)}
contained_by{box{<0,-3,-.1>,<3,0,.1>}}translate z*15finish{ambient 1}}//POV35
Post a reply to this message
|
![](/i/fill.gif) |